package com.oreilly.justspring.core.ch2.ex28;


public class Trade {
	private UniqueIdService uniqueIdService = null;

	private int tradeId = -1;

	public Trade() {
		tradeId = uniqueIdService.getUniqueId();
	}

	public int getTradeId() {
		return tradeId;
	}

	public void setUniqueIdService(UniqueIdService uniqueIdService) {
		this.uniqueIdService = uniqueIdService;
	}

	public UniqueIdService getUniqueIdService() {
		return uniqueIdService;
	}
}